//
//  CheckAgainItemViewModel.m
//  MobileChecker
//
//  Created by Lymons on 15-1-13.
//  Copyright (c) 2015年 Lymons. All rights reserved.
//

#import "CheckAgainItemViewModel.h"

@implementation CheckAgainItemViewModel

- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

#pragma mark - UITableViewDataSource

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [super tableView:tableView cellForRowAtIndexPath:indexPath];
    
    NSString *item = cell.textLabel.text;
    if ([item isEqualToString:CELL_NETWORK] || [item isEqualToString:CELL_GPS] ||
        [item isEqualToString:CELL_COMPASS] || [item isEqualToString:CELL_MAGNETIC] ||
        [item isEqualToString:CELL_PROMIXITY] || [item isEqualToString:CELL_LUMINA]) {
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.accessoryType = UITableViewCellAccessoryNone;
    } else {
        cell.selectionStyle = UITableViewCellSelectionStyleBlue;
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    return cell;
}

@end
